package com.keyware.kd.repository.mybatis.itf.auditlog;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.keyware.kd.repository.entity.auditlog.AuditLog;

public interface AuditLogMapper {
    int deleteByPrimaryKey(String id);
    int deleteAudit(List<?> listId);
    List selectAudit(List listId);

    int insert(AuditLog record);

    int insertSelective(AuditLog record);

    AuditLog selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AuditLog record);

    int updateByPrimaryKey(AuditLog record);
    List<AuditLog> selectAll(@Param("userId")String userId,@Param("projectSource")String projectSource);
    /**
   	 *@author 申鹏飞
   	 *@title 查询安全审计员审计页面信息
   	 * @return
   	 *@date 2016-07-01
   	 */
    List<AuditLog> safeAuditLog(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("projectSource")String projectSource);
    /**
   	 *@author 申鹏飞
   	 *@title 查询安全保密员审计页面信息
   	 *@return
   	 *@date 2016-07-01
   	 */
    List<AuditLog> safeSecretAuditLog(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("projectSource")String projectSource);
    /**
   	 *@author 申鹏飞
   	 *@title 查询管理员审计页面信息
   	 *@return
   	 *@date 2016-07-01
   	 */
    List<AuditLog> selectAdminLog(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("projectSource")String projectSource);
    /**
     * @Title: selectAllLog
     * @Description: 查询所有日期信息
     * @param record
     * @return
     * @author 雒乐
     * @return List<AuditLog>
     */
    List<AuditLog> selectAllLog(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("projectSource")String projectSource);


    /**
     * @Author: 韩丽霞
     * @Title: selectUserLog
     * @Description: 查询普通用户日志
     * @Param: [startDate, endDate, projectSource]
     * @Return: java.util.List<com.keyware.kd.repository.entity.auditlog.AuditLog>
     *
     */
    List<AuditLog> selectUserLog(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("projectSource")String projectSource);

    /**
     * @Author: 韩丽霞
     * @Title: deleteAuditLog
     * @Description: 删除6个月之前的日志信息
     * @Param: []
     * @Return: void
     *
     */
    void deleteAuditLog();

}